package gov.nasa.anml.lifted;

import gov.nasa.anml.PDDL;
import gov.nasa.anml.State;
import gov.nasa.anml.utility.SimpleFloat;
import gov.nasa.anml.utility.SimpleInteger;
import gov.nasa.anml.utility.SimpleVoid;
//get rid of me; use an atomic update thingy instead?
// start, interim, end
// point, interval, point
// null?, null?, null?
public class Point extends ConstantExpressionImp<SimpleFloat> implements AtomicTime {
	public Expression<SimpleFloat,?> start;
	public Constant<SimpleInteger> bra;

	public Point() {
		bra = IntervalImp.constantAtBra;
	}
	
	public Point(Expression<SimpleFloat,?> s) {
		start = s;
		bra = IntervalImp.constantAtBra;
	}
	
	public Point(Expression<SimpleFloat,?> s, int b) {
		start = s;
		bra = IntervalImp.makeBra(b);
	}
	
	public TypeCode typeCode() {
		return TypeCode.Float;
	}

	public SimpleFloat value(State s) {
		return start.value(s);
	}

	public boolean apply(State p, int contextID, State c) {
		return false;
	}

	
}
